//Domain
//http://100.98.152.217:80
//Namespace
//Juse.Interface
//ClassName
//JSShop.BLL.Interface.CategoryBrowser
//请勿修改上述接口信息
namespace Juse.Interface
{
    public class CategoryBrowser : wnxd.Web.InterfaceBase
    {
        public CategoryBrowser()
        {
            this.Domain = "http://120.27.140.51/";
            this.Namespace = "JSShop.BLL.Interface";
            this.ClassName = "CategoryBrowser";
        }
        /// <summary>
        /// 根据 ParentCategoryId 获取子分类信息, 当 ParentCategoryId = 0 则获取的是顶级分类
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_Categories> GetSubCategories(System.Int32 parentCategoryId, System.Int32 top)
        {
            wnxd.javascript.json r = this.GetCache(1800, "D51AE0C15E5B2CE4D16FAD3747215C4F", parentCategoryId, top);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_Categories>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_Categories>));
        }
        public System.Collections.Generic.List<JSShop.Model.Hishop_Categories> GetCategories()
        {
            wnxd.javascript.json r = this.Run("2E43029C6A4EAE0550381410A6E42FEF");
            return (System.Collections.Generic.List<JSShop.Model.Hishop_Categories>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_Categories>));
        }
        /// <summary>
        /// 根据二级分类ID同级分类
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_Categories> GetSubCategoriesR(System.Int32 parentCategoryId, System.Int32 top)
        {
            wnxd.javascript.json r = this.GetCache(1800, "822E1C9D3DE1C58A1E05742CAB927518", parentCategoryId, top);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_Categories>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_Categories>));
        }
        /// <summary>
        /// 根据二级分类路径获取所关联的品牌,top为0则获取所有
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories> GetBrandList(System.String CategoryPath, System.Int32 top = 0)
        {
            wnxd.javascript.json r = this.GetCache(1800, "5A6A4948B1BB01ACB57CD7B3DFDBB19E", CategoryPath, top);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories>));
        }
        /// <summary>
        /// 根据分类ID获取所关联的品牌,top为0则获取所有
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories> GetBrandList(System.Int32 CategoryId, System.Int32 top = 0)
        {
            wnxd.javascript.json r = this.GetCache(1800, "28544D93728FCD2D29E028C9D9803A76", CategoryId, top);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories>));
        }
        public System.Collections.Generic.List<JSShop.Model.wnxd_feature> GetFeature(System.String CategoryID)
        {
            wnxd.javascript.json r = this.Run("B0F266A9FAB556D706E82224775C5CEF", CategoryID);
            return (System.Collections.Generic.List<JSShop.Model.wnxd_feature>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.wnxd_feature>));
        }
        /// <summary>
        /// 获取指定分类信息
        /// </summary>
        public JSShop.Model.Hishop_Categories GetCategoryInfo(System.Int32 CategoryId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "6EDC28F9372E71091C09B2BF584A9DB1", CategoryId);
            return (JSShop.Model.Hishop_Categories)r.TryConvert(typeof(JSShop.Model.Hishop_Categories));
        }
        /// <summary>
        /// 根据品牌Id获取分类列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_Categories> GetBrandCategoryList(System.Int32 BrandId, System.Int32 top)
        {
            wnxd.javascript.json r = this.GetCache(1800, "0D29FBE96EB1CFF69CBD8B1930E3C48B", BrandId, top);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_Categories>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_Categories>));
        }
        /// <summary>
        /// 更新品牌
        /// </summary>
        public System.Int32 SetBrandCategory(JSShop.Model.Hishop_BrandCategories model)
        {
            wnxd.javascript.json r = this.Run("FDD8F3A1FDBFF40049B9BADF9083E3E9", model);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 删除品牌商品类型关联
        /// </summary>
        public System.Boolean DelProductTypeBrand(System.Int32 id)
        {
            wnxd.javascript.json r = this.Run("A7ECB4480E409B10C8D02585499FF482", id);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 添加品牌商品类型关联
        /// </summary>
        public System.Boolean SetProductTypeBrand(JSShop.Model.Hishop_ProductTypeBrands model)
        {
            wnxd.javascript.json r = this.Run("E8BABBB1C1F381802BE49BC52A654876", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 删除商品分类
        /// </summary>
        public System.Boolean DeleteCategory(System.String ids)
        {
            wnxd.javascript.json r = this.Run("E3D0FDE1B34B2B1AAAD6EDB437E4F4BA", ids);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据父ID删除商品分类
        /// </summary>
        public System.Boolean DeleteListByParentId(System.String parentIds)
        {
            wnxd.javascript.json r = this.Run("3AEF864915398D89A97C7655ACC16CDB", parentIds);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 调用存储过程新增商品分类
        /// </summary>
        public System.Int32 Cp_Category_Create(JSShop.Model.Hishop_Categories model)
        {
            wnxd.javascript.json r = this.Run("40D2C2533464BB3D074423C5B0333422", model);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 编辑产品特点
        /// </summary>
        public System.Boolean SetFeatre(JSShop.Model.wnxd_feature model)
        {
            wnxd.javascript.json r = this.Run("3D9250A301D7F1518910CF76EEF9CCC6", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取品牌信息
        /// </summary>
        public JSShop.Model.DbQueryResultBrandCategories GetBrandCategories(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("B4133AE5F485C44C66D632B10B0544D7", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryResultBrandCategories)r.TryConvert(typeof(JSShop.Model.DbQueryResultBrandCategories));
        }
        /// <summary>
        /// 根据品牌Id获取品牌信息
        /// </summary>
        public JSShop.Model.Hishop_BrandCategories GetBrandCategoriesModel(System.Int32 brandId)
        {
            wnxd.javascript.json r = this.Run("A16DFD5D5F1C6C5E901C359EBC1400AC", brandId);
            return (JSShop.Model.Hishop_BrandCategories)r.TryConvert(typeof(JSShop.Model.Hishop_BrandCategories));
        }
        /// <summary>
        /// 根据品牌Id删除品牌信息
        /// </summary>
        public System.Boolean DeleteBrandCategoryByIds(System.String ids)
        {
            wnxd.javascript.json r = this.Run("A928E62056BB029A1949D2FE67A1DB74", ids);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据品牌Id删除商品类型与品牌关联关系
        /// </summary>
        public System.Boolean DeleteProductTypeBrandByBrandIds(System.String ids)
        {
            wnxd.javascript.json r = this.Run("C28C9380AAC02BCFA2AEA91139FDA82E", ids);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
    }
}